package com.health.viewscontrols.medical.adapter;

import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.health.R;
import com.health.viewscontrols.medical.bean.SfHistoryBean;

import java.util.List;

public class SfHistoryAdapter extends BaseQuickAdapter<SfHistoryBean, BaseViewHolder> {

    public SfHistoryAdapter(int layoutResId, @Nullable List<SfHistoryBean> data, boolean showHide) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SfHistoryBean item) {
        helper.setText(R.id.tv1,item.getName());
        helper.setText(R.id.tv2,item.getFollowupDate());
//        helper.setText(R.id.tv3, "查看记录");

        helper.addOnClickListener(R.id.tv3)
                .addOnClickListener(R.id.tv4);

    }
}
